package org.xg.study.pd;

/**
 * @author CMG
 * @version 1.0
 * @cLassName Singleton_01
 * @description 懒汉模式(线程不安全)
 * @date 2021/9/14 9:30
 **/
public class Singleton_01 {
    private static Singleton_01 instance;

    private Singleton_01(){

    }

    public static Singleton_01 getInstance(){
        if(null != instance){
            return instance;
        }
        instance = new Singleton_01();
        return instance;
    }
}
